package light.head.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 违纪扣除明细
 */
@Entity
@Table
public class Discipline implements Serializable {
	
	
	private static final long serialVersionUID = 6884103238231419967L;
	
	
	private Integer code;
	private Integer user;						// 用户编号
	private String reason;						// 原因
	private Integer days;						// 天数
	private Date start;							// 开始时间
	private Date end;							// 结束时间
	private Integer debit;						// 应扣款
	private Boolean deleted;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	@Column
	public Integer getUser() {
		return user;
	}
	@Column(length = 200)
	public String getReason() {
		return reason;
	}
	@Column(length = 5)
	public Integer getDays() {
		return days;
	}
	@Column
	public Date getStart() {
		return start;
	}
	@Column
	public Date getEnd() {
		return end;
	}
	@Column(length = 5)
	public Integer getDebit() {
		return debit;
	}
	@Column
	public Boolean getDeleted() {
		return deleted;
	}
	
	
	
	
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setUser(Integer user) {
		this.user = user;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public void setDays(Integer days) {
		this.days = days;
	}
	public void setStart(Date start) {
		this.start = start;
	}
	public void setEnd(Date end) {
		this.end = end;
	}
	public void setDebit(Integer debit) {
		this.debit = debit;
	}
	
	

}
